home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / shrlk201.zip / _SETUP.1 / Unlock.cpp < prev    next >
C/C++ Source or Header  |  1997-07-22  |  810b  |  24 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl\vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "Unlock.h"
  6. //---------------------------------------------------------------------------
  7. #pragma resource "*.dfm"
  8. TfrmUnlocker *frmUnlocker;
  9. //---------------------------------------------------------------------------
  10. __fastcall TfrmUnlocker::TfrmUnlocker(TComponent* Owner)
  11.     : TForm(Owner)
  12. {
  13. }
  14. //---------------------------------------------------------------------------
  15. void __fastcall TfrmUnlocker::btnOkClick(TObject *Sender)
  16. {
  17.   if (txtName->Text == "")
  18.     {
  19.       MessageDlg("Please enter a name", mtError, TMsgDlgButtons() <<  mbOK, 0);
  20.       ModalResult = mrNone;
  21.     };
  22.  
  23. }
  24. //---------------------------------------------------------------------------